package com.baidu.controller;

import com.baidu.entity.dto.ListDTO;
import com.baidu.entity.dto.TestDTO;
import com.baidu.service.IShipmentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * @Author Mawq
 * @Date 2021/8/30 16:01
 * @Version 1.0
 */

@RestController
@RequestMapping("/ship")
public class ShipmentController {

    @Autowired
    private IShipmentService iShipmentService;

    @GetMapping("/test")
    public Object test(TestDTO dto){
        return iShipmentService.getList(dto);
    }

    @GetMapping("/page")
    public Object pageTest(ListDTO dto){
        return iShipmentService.getListByPage(dto);
    }

}
